<?php
/**
 * Joomla! 1.5 component ArticleCashRewards
 *
 * @version $Id: config.php 2009-05-10 01:47:01 svn $
 * @author Maverick
 * @package models
 * @subpackage ArticleCashRewards
 * @license GNU/GPL
 * Website: http://www.boddunan.com
 *
 * Review and approve the articles and assign points and cash rewards.
 * Users can see their articles and the points/cash rewards assigned in the front-end module.
 */

// no direct access
defined('_JEXEC') or die('Restricted access');

// Import Joomla! libraries
jimport('joomla.application.component.model');

class ArticleCashRewardsModelConfig extends JModel {

	function __construct(){
	
		parent::__construct();
		global $mainframe, $option;
	}
    
    function getConfiguration() {
        
		$db     =& JFactory::getDBO();

        $query = 'SELECT config_name, config_value FROM '. TABLE_ACR_CONFIG;
        $db->setQuery($query);
		$rows = $db->loadObjectList();
        
        return $rows;
    }
}
?>